<?php include THEMES_PATH . 'public/before_body2.phtml'; ?>
<meta name="robots" content="nofollow">
<!-- build:css /statics/front/pkg/css/custom.css -->
<link href="/statics/front/css/custom.css?v=20160122" rel="stylesheet">
<link href="/statics/front/showtip/showtips.css" rel="stylesheet">
<!-- endbuild -->
<style>
.measure-tips {
    width: 82px;
    padding: 5px;
    background-color: #ec6565;
    font-size: 14px;
    top: 0;
   display: inline-block;
   margin-left: 5px;
}
.attribute{
  position: relative;
}
.measure-tips .caret-down {
    border-top: 10px solid #ec6565;
    border-right: 10px solid transparent;
    border-left: 10px solid transparent;
    border-bottom: 0;
    border-radius: 0;
    width: 0;
    height: 0;
    font-size: 0;
    position: absolute;
    top: 31px;
    margin-left: 5px;
}
.notAllowed{background: url(/statics/front/images/icons/notAllowed.png) no-repeat;}
.notAllowed a{opacity: 0.5; filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=50);}

</style>
</head>
<body>
<?php include THEMES_PATH . 'public/header2.phtml';?>
<div class="flowchart js-flowchart">
  <ul class="clearfix w1366 center-block">
    <li<?php if(!$quickbuy){ ?> class="current"<?php };?>>
      <em>1 .</em>
      <?php if(!$msizedata):?>
      <?php echo L('_customize_');?>
      <?php else:?>
      <?php echo L('_SIZE_');?>
      <?php endif; ?>
      <i class="fa fa-caret-up"></i>
    </li>
    <?php
      $dh_i = 1;
	  if(count($show_attr_array)==0){
    ?>
    	<?php if(isset($attributeList[9999])): ?>
    		<li<?php if($quickbuy):?> class="current"<?php endif;?>><em><?php echo ++$dh_i;?> .</em><?php echo $productInfo['model_id'] == 25 ? L('LETTERING') : L('_monogram_');?><i class="fa fa-caret-up"></i></li>
    	<?php endif; ?>
    <?php }else{ ?>
     	<li<?php if($quickbuy):?> class="current"<?php endif;?>><em><?php echo ++$dh_i;?> .</em><?php echo $productInfo['model_id'] == 25 ?  '附加定制': '附加定制';?><i class="fa fa-caret-up"></i></li>
     	<?php if(isset($attributeList[9999])): ?>
        	<li<?php if($quickbuy):?> class="current"<?php endif;?>><em><?php echo ++$dh_i;?> .</em><?php echo $productInfo['model_id'] == 25 ? L('LETTERING') : L('_monogram_');?><i class="fa fa-caret-up"></i></li>
    	<?php endif; ?>
	<?php } ?>

    <?php if(!$msizedata):?><li><em><?php echo ++$dh_i;?> .</em><?php echo L('_measurement_');?><i class="fa fa-caret-up"></i></li><?php endif; ?>
    <li><em><?php echo ++$dh_i;?> .</em><?php echo L('_checkout_');?><i class="fa fa-caret-up"></i></li>
  </ul>
</div>
<div class="clearfix w1366 center-block custom-container ovh">
  <?php $is_shoes=0;if(isset($attributeList) && $attributeList):?>
  <div class="attr-content js-attr-content" data-goods-id="<?php echo $productInfo['id'];?>">
    <div class="inner">
      <div class="panel<?php if(!$quickbuy):?> show<?php endif;?> js-first-panel">

        <?php
          $order_i=0;

          foreach ($attributeList as $attr_id => $attr):
            if($attr_id != 9999 && !in_array($attr_id,$show_attr_array)):
        ?>
        <?php if($attr['attr_pro_type'] == 0 && $attr_id != 83): $is_shoes=1;$order_i++;?>
        <div class="attribute<?php if($attr_id == 75){echo ' js-shirt-cuffs';}?><?php if($attr_id == '69'){echo ' js-blazer-Lining-Unlined-no';}?><?php if($attr_id==172){?> js-cashmere-sweater-contrast-color<?php }?><?php if(in_array($attr_id,array(72,57,114))){ echo ' boutonniere_yes_type'; }?><?php if(in_array($attr_id,array(229,202))){ echo ' vest_lapel_yes_type';}?><?php if(in_array($attr_id,array(230))){ echo ' neckline_yes_type';}?><?php if(in_array($attr_id,array(231))){ echo ' sleeve_yes_type';}?>">
          <div class="attr-head">
            <i class="js-serial-num"><?php echo $order_i;?></i>
            <strong><?php echo $attr['name'];?></strong>
            <span data-attr-id="<?php echo $attr_id;?>" class="js-btn-help"><?php echo L('help');?></span>
          </div>

          <?php $mobile_active_img = '';?>
          <ul class="<?php if(in_array($attr_id,array(29,98,63,104,34,68))):?>pull-left <?php endif;?>attr-list" id="attr_value_ul">
            <?php
              $j=0;
              if(isset($attr['values']) && $attr['values']):
                foreach ($attr['values'] as $attrv):
                //面料挂面对应start
              if($attr_id ==29){
                  if($attr['default']== $attrv['product_attr_id']){
                      $libu_attr=$attrv['attr_value_id'];
                  }

              }
              //面料挂面对应over
                $j++;
            ?>
            <?php if($attrv['label'])://删除的属性值不显示?>
            <li onClick="get_mianliao(<?php echo $attrv['attr_value_id'];?>)" id="hidden_miaoliao<?php echo $attrv['attr_value_id']; ?>" <?php if($attrv['libu_img']):?> data-img="<?php echo $attrv['libu_img'];?>"<?php endif;?> title="<?php echo $attr_id.':'.$attr['name'].':'.$attrv['product_attr_id'] .':'. $attrv['label'].':'. $attrv['attr_value_id'];?>" class="<?php if($attr['default']== $attrv['product_attr_id']) echo 'selected';?><?php if(in_array($attr_id,array(26,96,60)) && in_array($attrv['attr_value_id'],array(81,294,183))){echo ' js-patch-pocket';}?><?php if($attr_id==149 && $attrv['attr_value_id']==833){echo ' js-shirt-short';}?><?php if($attr_id==76 && $attrv['attr_value_id']==242){echo ' js-shirt-pocket-none';}?><?php if(in_array($attrv['attr_value_id'],array(706,696,705))){echo ' js-suit-Four-Button';}?><?php if(in_array($attrv['attr_value_id'],array(283,7,60))){echo ' js-suit-Notch-Lapel';}?><?php if(in_array($attrv['attr_value_id'],array(281,5,58))){echo ' js-suit-Peak-Lapel';}?><?php if(in_array($attrv['attr_value_id'],array(194,195))){echo ' js-blazer-Facing-Curved-Straight';}?><?php if($attrv['attr_value_id'] == 854){echo ' js-blazer-Facing-Curved-Straight-no';}?><?php if($attrv['attr_value_id'] == 856){echo ' js-blazer-Facing-Arcuated';}?><?php if(in_array($attrv['attr_value_id'],array(855,202))){echo ' js-blazer-Facing-Arcuated-no';}?><?php if(in_array($attrv['attr_value_id'],array(203,202))){echo ' js-blazer-Lining-Full-Half';}?><?php if(in_array($attrv['attr_value_id'],array(853,861,863))){echo ' js-blazer-Lining-Full-Half-no';}?><?php if($attrv['attr_value_id'] == 855){echo ' js-blazer-Lining-Unlined';}?><?php if($attr_id == 68){echo ' js-blazer-Lining-li';}?><?php if($attr_id == 69){echo ' js-blazer-Lining-Color-li';}?><?php if($attrv['attr_value_id']==957){?> js-cashmere-sweater-no-contrast<?php }?>
				<?php //平戗驳领与四粒扣的互斥 ?>
				<?php if(in_array($attr_id,array(22,2,93)) && in_array($attrv['attr_value_id'],array(703,697,704))){ echo ' js_clothes_collar_type'; }?>
				<?php if(in_array($attr_id,array(25,4,95)) && in_array($attrv['attr_value_id'],array(1136,72,74,71,1137,70,705,1376,696,1130,175,176,174,1131,972,173,706,290,289,1287,288,1359))){ echo ' js_clothes_four_button_type'; }?>
            	<?php //特殊弧形挂面与半里的冲突?>
				<?php if(in_array($attr_id,array(29,63,98)) && in_array($attrv['attr_value_id'],array(1005,856,1301))){ echo ' js_clothes_facing_special_type'; }//特殊弧形挂面?>
				<?php if(in_array($attr_id,array(29,63,98)) && in_array($attrv['attr_value_id'],array(91,92,194,195,303,304))){ echo ' js_clothes_facing_ordinary_type'; }//弯挂面 直挂面?>
				<?php if(in_array($attr_id,array(34,68,104)) && in_array($attrv['attr_value_id'],array(100,202,313))){ echo ' js_clothes_lining_ordinary_type'; }//半里?>
				<?php if(in_array($attr_id,array(34,68,104)) && in_array($attrv['attr_value_id'],array(1004,854,1300))){ echo ' js_clothes_lining_special_type'; }//特殊弧形半里?>
                <?php //青果领与插花眼开口的冲突?>
                <?php if(in_array($attr_id,array(2,22,93)) && in_array($attrv['attr_value_id'],array(172,62,280))){ echo ' js_clothes_lapel_special_type'; }?>
                <?php if(in_array($attr_id,array(120,91,118)) && in_array($attrv['attr_value_id'],array(369,370,277,278,362,363))){ echo ' js_clothes_boutonniere_special_type'; }?>
                <?php //插花眼无则插花眼撞色无?>
                <?php if(in_array($attr_id,array(120,91,118))){ if(in_array($attrv['attr_value_id'],array(864,1147,1148))){ echo ' js_clothes_boutonniere_no_type'; }else{ echo ' js_clothes_boutonniere_yes_type';}}?>
                <?php //U型领无手巾袋?>
                <?php if(in_array($attr_id,array(126,105))){ if(in_array($attrv['attr_value_id'],array(604,316))){ echo ' js_clothes_vest_lapel_no_type'; }else{ echo ' js_clothes_vest_lapel_yes_type';}}?>
                <?php //特定产品1647，英文站939的衣领为953 XC009(小戗驳领,针织单西） 则可以显示972XMD24R（圆摆双排2+4），972只为953显示?>
                <?php if(in_array($attr_id,array(2))){ if(in_array($attrv['attr_value_id'],array(953))){  echo 'js_clothes_lapel_abount_button_yes'; }else{ echo 'js_clothes_lapel_abount_button_no';}}?>
                <?php if(in_array($attr_id,array(4)) && in_array($attrv['attr_value_id'],array(972))){  echo 'js_clothes_button_abount_lapel_yes'; }?>
                <?php //xc007分割戗驳领只能选择一粒扣两粒扣?>
                <?php if(in_array($attr_id,array(2,22,93)) && in_array($attrv['attr_value_id'],array(851,1001,1352))){ echo 'js_clothes_b_l_type';}?>
                <?php if(in_array($attr_id,array(4,25,95)) && in_array($attrv['attr_value_id'],array(14,68,291))){ echo 'js_clothes_l_b_type'; }?>
                <?php //衬衫品类，如果是撞色部位是不撞色，则撞色颜色选项只有不撞色?>
                <?php if(in_array($attr_id,array(228)) && in_array($attrv['attr_value_id'],array(1273))){ echo 'js_clothes_contrast_position';}?>
                <?php if(in_array($attr_id,array(89))){ if(!in_array($attrv['attr_value_id'],array(501))){ echo 'js_clothes_contrast_position_no';} }?>
                 <?php //领型为909,1304,1125,1283,则显示领口部撞色 ?>
                <?php if(in_array($attr_id,array(56))){ if(in_array($attrv['attr_value_id'],array(909,1304,1125,1283))){ echo ' js_clothes_neckline_no_type'; }else{ echo ' js_clothes_neckline_yes_type';}}?>
                <?php //袖子为905,则显示袖口撞色 ?>
                <?php if(in_array($attr_id,array(75))){ if(in_array($attrv['attr_value_id'],array(905))){ echo ' js_clothes_sleeve_no_type'; }else{ echo ' js_clothes_sleeve_yes_type';}}?>
                <?php //锁眼线与撞色 ?>
                <?php
					if(in_array($attr_id,array(247,249,251))){
						if(in_array($attrv['attr_value_id'],array(1446,1458,1470))){ //全部撞色
							echo ' js_clothes_buttonholes_type_one';
						}elseif(in_array($attrv['attr_value_id'],array(1445,1457,1469))){  //插花眼+袖口最后一个扣眼
							echo ' js_clothes_buttonholes_type_two';
						}elseif(in_array($attrv['attr_value_id'],array(1444,1456,1468))){  //顺大身色
							echo ' js_clothes_buttonholes_type_three';
						}
					}
				?>
                <?php
                	if(in_array($attr_id,array(248,250,252))){
						if($attr['default']== $attrv['product_attr_id']){ //后台默认色
							echo " js_clothes_contrast_buttonholes_color_type_one";
						}
						if(in_array($attrv['attr_value_id'],array(1454,1466,1478))){
							echo " js_clothes_contrast_buttonholes_color_type_three";
						}
						if(!in_array($attrv['attr_value_id'],array(1454,1466,1478))){  //所有颜色（去除顺色）
							echo " js_clothes_contrast_buttonholes_color_type_two";
						}
					}
				?>
                ">
              <a href="javascript:">
                <?php if($attr['default']== $attrv['product_attr_id']) $mobile_active_img = $attrv['image2'];?>
                <img src="<?php echo $attrv['image'];?>">
                <img src="<?php echo $attrv['image2'];?>" class="active">
              </a>
              <p class="attr-val"><?php echo $attrv['label'];?><?php //echo $attrv['add_money']>0?"<br>(+".currency($attrv['add_money']).")":"";?></p>
            </li>
           <?php endif;?>
            <?php
                endforeach;
              endif;
            ?>
          </ul>
          <div class="mobile-attr js-mobile-attr">
            <?php if($mobile_active_img):?><img src="<?php echo $mobile_active_img;?>"><?php endif;?>
          </div>
          <?php if(in_array($attr_id,array(29,98,63,104,34,68))):?>
          <img src="<?php echo $attrv['libu_img'];?>" class="pull-right js-img-change">
          <?php endif;?>
        </div>
        <?php endif; ?>


        <?php
            endif;
          endforeach;
        ?>
      </div>

    <!--判断是否有隐藏属性开始-->
    <?php if(is_array($show_attr_array) && count($show_attr_array)>0): ?>
	<div class="panel" id="test">
      	<?php
        	$order_i=0;
          	foreach ($attributeList as $attr_id => $attr):
            	if($attr_id != 9999 && in_array($attr_id,$show_attr_array)):
        ?>
        <?php if( $attr_id != 83): $order_i++;?>
        <div class="attribute<?php if($attr_id == 75){echo ' js-shirt-cuffs';}?><?php if($attr_id == 69){echo ' js-blazer-Lining-Unlined-no';}?><?php if($attr_id==172){?> js-cashmere-sweater-contrast-color<?php }?><?php if(in_array($attr_id,array(72,57,114))){ echo ' boutonniere_yes_type'; }?><?php if(in_array($attr_id,array(229,202))){ echo ' vest_lapel_yes_type';}?><?php if(in_array($attr_id,array(230))){ echo ' neckline_yes_type';}?><?php if(in_array($attr_id,array(231))){ echo ' sleeve_yes_type';}?>">
          	<div class="attr-head">
            	<i class="js-serial-num"><?php echo $order_i;?></i>
            	<strong><?php echo $attr['name'];?></strong>
            	<span data-attr-id="<?php echo $attr_id;?>" class="js-btn-help"><?php echo L('help');?></span>
          	</div>
          	<?php $mobile_active_img = '';?>
          	<ul class="<?php if(in_array($attr_id,array(29,98,63,104,34,68))):?>pull-left <?php endif;?>attr-list" id="attr_value_ul">
            	<?php
              		$j=0;
              		if(isset($attr['values']) && $attr['values']):
                		foreach ($attr['values'] as $attrv):
                			//面料挂面对应start
              				if($attr_id ==29){
                  				if($attr['default']== $attrv['product_attr_id']){
                      				$libu_attr=$attrv['attr_value_id'];
                  				}
							}
              				//面料挂面对应over
                			$j++;
            	?>
            	<?php if($attrv['label'])://删除的属性值不显示?>
            	<li onClick="get_mianliao(<?php echo $attrv['attr_value_id'];?>)" id="hidden_miaoliao<?php echo $attrv['attr_value_id']; ?>" <?php if($attrv['libu_img']):?> data-img="<?php echo $attrv['libu_img'];?>"<?php endif;?> title="<?php echo $attr_id.':'.$attr['name'].':'.$attrv['product_attr_id'] .':'. $attrv['label'].':'. $attrv['attr_value_id'];?>" class="<?php if($attr['default']== $attrv['product_attr_id']) echo 'selected';?><?php if(in_array($attr_id,array(26,96,60)) && in_array($attrv['attr_value_id'],array(81,294,183))){echo ' js-patch-pocket';}?><?php if($attr_id==149 && $attrv['attr_value_id']==833){echo ' js-shirt-short';}?><?php if($attr_id==76 && $attrv['attr_value_id']==242){echo ' js-shirt-pocket-none';}?><?php if(in_array($attrv['attr_value_id'],array(706,696,705))){echo ' js-suit-Four-Button';}?><?php if(in_array($attrv['attr_value_id'],array(283,7,60))){echo ' js-suit-Notch-Lapel';}?><?php if(in_array($attrv['attr_value_id'],array(281,5,58))){echo ' js-suit-Peak-Lapel';}?><?php if(in_array($attrv['attr_value_id'],array(194,195))){echo ' js-blazer-Facing-Curved-Straight';}?><?php if($attrv['attr_value_id'] == 854){echo ' js-blazer-Facing-Curved-Straight-no';}?><?php if($attrv['attr_value_id'] == 856){echo ' js-blazer-Facing-Arcuated';}?><?php if(in_array($attrv['attr_value_id'],array(855,202))){echo ' js-blazer-Facing-Arcuated-no';}?><?php if(in_array($attrv['attr_value_id'],array(203,202))){echo ' js-blazer-Lining-Full-Half';}?><?php if(in_array($attrv['attr_value_id'],array(853,861,863))){echo ' js-blazer-Lining-Full-Half-no';}?><?php if($attrv['attr_value_id'] == 855){echo ' js-blazer-Lining-Unlined';}?><?php if($attr_id == 68){echo ' js-blazer-Lining-li';}?><?php if($attr_id == 69){echo ' js-blazer-Lining-Color-li';}?><?php if($attrv['attr_value_id']==957){?> js-cashmere-sweater-no-contrast<?php }?><?php if(in_array($attr_id,array(22,2,93)) && in_array($attrv['attr_value_id'],array(703,697,704))){ echo ' js_clothes_collar_type'; }?><?php if(in_array($attr_id,array(25,4,95)) && in_array($attrv['attr_value_id'],array(1136,72,74,71,1137,70,705,1376,696,1130,175,176,174,1131,972,173,706,290,289,1287,288,1359))){ echo ' js_clothes_four_button_type'; }?>
				<?php //特殊弧形挂面与半里的冲突?>
				<?php if(in_array($attr_id,array(29,63,98)) && in_array($attrv['attr_value_id'],array(1005,856,1301))){ echo ' js_clothes_facing_special_type'; }?>
				<?php if(in_array($attr_id,array(29,63,98)) && in_array($attrv['attr_value_id'],array(91,92,194,195,303,304))){ echo ' js_clothes_facing_ordinary_type'; }?>
				<?php if(in_array($attr_id,array(34,68,104)) && in_array($attrv['attr_value_id'],array(100,202,313))){ echo ' js_clothes_lining_ordinary_type'; }?>
				<?php if(in_array($attr_id,array(34,68,104)) && in_array($attrv['attr_value_id'],array(1004,854,1300))){ echo ' js_clothes_lining_special_type'; }?>
                <?php //青果领与插花眼开口的冲突?>
                <?php if(in_array($attr_id,array(2,22,93)) && in_array($attrv['attr_value_id'],array(172,62,280))){ echo ' js_clothes_lapel_special_type'; }?>
                <?php if(in_array($attr_id,array(120,91,118)) && in_array($attrv['attr_value_id'],array(369,370,277,278,362,363))){ echo ' js_clothes_boutonniere_special_type'; }?>
                <?php //插花眼无则插花眼撞色无?>
                <?php if(in_array($attr_id,array(120,91,118))){ if(in_array($attrv['attr_value_id'],array(864,1147,1148))){ echo ' js_clothes_boutonniere_no_type'; }else{ echo ' js_clothes_boutonniere_yes_type';}}?>
                <?php //U型领无手巾袋?>
                <?php if(in_array($attr_id,array(126,105))){ if(in_array($attrv['attr_value_id'],array(604,316))){ echo ' js_clothes_vest_lapel_no_type'; }else{ echo ' js_clothes_vest_lapel_yes_type';}}?>
                <?php //特定产品1647，英文站939的衣领为953 XC009(小戗驳领,针织单西） 则可以显示972XMD24R（圆摆双排2+4），972只为953显示?>
                <?php if(in_array($attr_id,array(2))){ if(in_array($attrv['attr_value_id'],array(953))){  echo 'js_clothes_lapel_abount_button_yes'; }else{ echo 'js_clothes_lapel_abount_button_no';}}?>
                <?php if(in_array($attr_id,array(4)) && in_array($attrv['attr_value_id'],array(972))){  echo 'js_clothes_button_abount_lapel_yes'; }?>
                <?php //xc007分割戗驳领只能选择一粒扣两粒扣?>
                <?php if(in_array($attr_id,array(2,22,93)) && in_array($attrv['attr_value_id'],array(851,1001,1352))){ echo 'js_clothes_b_l_type';}?>
                <?php if(in_array($attr_id,array(4,25,95)) && in_array($attrv['attr_value_id'],array(14,68,291))){ echo 'js_clothes_l_b_type'; }?>
                <?php //衬衫品类，如果是撞色部位是不撞色，则撞色颜色选项只有不撞色?>
                <?php if(in_array($attr_id,array(228)) && in_array($attrv['attr_value_id'],array(1273))){ echo 'js_clothes_contrast_position';}?>
                <?php if(in_array($attr_id,array(89))){ if(!in_array($attrv['attr_value_id'],array(501))){ echo 'js_clothes_contrast_position_no';} }?>
                <?php //领型为909,1304,1125,1283,则显示领口部撞色 ?>
                <?php if(in_array($attr_id,array(56))){ if(in_array($attrv['attr_value_id'],array(909,1304,1125,1283))){ echo ' js_clothes_neckline_no_type'; }else{ echo ' js_clothes_neckline_yes_type';}}?>
                <?php //袖子为905,则显示袖口撞色 ?>
                <?php if(in_array($attr_id,array(75))){ if(in_array($attrv['attr_value_id'],array(905))){ echo ' js_clothes_sleeve_no_type'; }else{ echo ' js_clothes_sleeve_yes_type';}}?>
                <?php //锁眼线与撞色 ?>
                <?php
					if(in_array($attr_id,array(247,249,251))){
						if(in_array($attrv['attr_value_id'],array(1446,1458,1470))){ //全部撞色
							echo ' js_clothes_buttonholes_type_one';
						}elseif(in_array($attrv['attr_value_id'],array(1445,1457,1469))){  //插花眼+袖口最后一个扣眼
							echo ' js_clothes_buttonholes_type_two';
						}elseif(in_array($attrv['attr_value_id'],array(1444,1456,1468))){  //顺大身色
							echo ' js_clothes_buttonholes_type_three';
						}
					}
				?>
                <?php
                	if(in_array($attr_id,array(248,250,252))){
						if($attr['default']== $attrv['product_attr_id']){ //后台默认色
							echo " js_clothes_contrast_buttonholes_color_type_one";
						}
						if(in_array($attrv['attr_value_id'],array(1454,1466,1478))){
							echo " js_clothes_contrast_buttonholes_color_type_three";
						}
						if(!in_array($attrv['attr_value_id'],array(1454,1466,1478))){  //所有颜色（去除顺色）
							echo " js_clothes_contrast_buttonholes_color_type_two";
						}
					}
				?>
                ">
              		<a href="javascript:">
                		<?php if($attr['default']== $attrv['product_attr_id']) $mobile_active_img = $attrv['image2'];?>
                		<img src="<?php echo $attrv['image'];?>">
                		<img src="<?php echo $attrv['image2'];?>" class="active">
              		</a>
              		<p class="attr-val"><?php echo $attrv['label'];?><?php //echo $attrv['add_money']>0?"<br>(+".currency($attrv['add_money']).")":"";?></p>
            	</li>
           		<?php endif;?>
            	<?php
                		endforeach;
              		endif;
            	?>
          	</ul>
          	<div class="mobile-attr js-mobile-attr">
            	<?php if($mobile_active_img):?><img src="<?php echo $mobile_active_img;?>"><?php endif;?>
          	</div>
          	<?php if(in_array($attr_id,array(29,98,63,104,34,68))):?>
          	<img src="<?php echo $attrv['libu_img'];?>" class="pull-right js-img-change">
          	<?php endif;?>
       	</div>
        <?php endif; ?>
      	<?php endif; endforeach;?>
      </div>
      <?php endif;?>
      <!--判断是否有隐藏属性结束-->

      <?php
        if(isset($attributeList[9999])):
          $help_attr_first_id = 0;
          $help_attr_count = 0;
          foreach ($attributeList as $attr_id => $attr){
            if($attr['attr_pro_fid'] == '9999' && $attr['attr_pro_type'] == 1) {
              if($help_attr_first_id == 0) $help_attr_first_id = $attr_id;
              $help_attr_count ++;
            }
          }
      ?>

      <div class="panel<?php if($quickbuy):?> show<?php endif;?>">
        <?php if($productInfo['model_id'] != 25):?>
          <div class="attribute">
            <div class="attr-head">
              <i class="js-serial-num"><?php $order_i++;echo 1;?></i>
              <strong>
              <?php if($productInfo['model_id'] == 14): echo L('shirt_monogram');?>
              <?php elseif($productInfo['model_id'] == 22): echo L('coat_monogram');?>
              <?php elseif($productInfo['model_id'] == 26): echo "牛仔裤绣字";?>
              <?php else: echo L('jacket_monogram'); endif;?>
              </strong>
              <span data-attr-id="<?php echo $help_attr_first_id;?>" class="js-btn-help"><?php echo L('help');?></span>
            </div>
            <table class="monogram<?php if($productInfo['model_id'] != 14):?> pull-left<?php endif;?>">
              <tr>
                <th><?php echo L('text');?></th>
                <td>
                  <?php
                    $textcss_i = 1;
                    foreach ($attributeList as $attr_id => $attr):
                      if($attr['attr_pro_fid'] == '9999' && $attr['attr_pro_type'] == 1):
                  ?>
                  <label>
                    <em><?php echo L('line'.$textcss_i);?>:</em>
                    <?php $max_size = ($productInfo['model_id'] == 14 ? 10 : ($productInfo['model_id'] == 22 ? 15 : 20));?>
                    <input type="text" placeholder="<?php if(isset($attr['default']) && $attr['default']){echo $attr['default'];}else{ echo '('.L("_MAX_".$max_size).')';}?>" title="<?php echo $attr_id.':'.$attr['name'].'::'.(isset($attr['default_value']) && $attr['default_value'] ? $attr['default_value'] : '');?>" maxlength="<?php echo $max_size;?>" data-default="(<?php echo L('_MAX_'.$max_size);?>)" class="js-preview-text js-text<?php echo $textcss_i>1 ? $textcss_i-1 : '';?>" />
                  </label>
                  <?php
                      $textcss_i++;
                      endif;
                    endforeach;
                  ?>
                </td>
              </tr>
              <tr>
                <th><?php echo L('font');?></th>
                <td class="font-box js-font-box">
                  <?php
                    foreach ($attributeList as $attr_id => $attr):
                      if($attr['attr_pro_fid'] == '9999' && $attr['attr_pro_type'] == 2):
                        foreach($attr['values'] as $attrv2):
                  ?>
                  <img src="<?php echo $attrv2['image']; ?>" title="<?php echo $attr_id.':'.$attr['name'].':'.$attrv2['product_attr_id'] .':'. $attrv2['label'] .':'. $attrv2['attr_value_id'];?>" width="40" height="40"<?php if($attr['default'] == $attrv2['product_attr_id']):?> class="selected"<?php endif;?> />
                  <?php endforeach;endif;endforeach;?>
                </td>
              </tr>
              <?php if($productInfo['model_id'] !=26):?>
              <tr>
                <th><?php echo L('font_color');?></th>
                <td class="color-box js-color-box">
                  <?php
                    foreach ($attributeList as $attr_id => $attr):
                      if($attr['attr_pro_fid'] == '9999' && $attr['attr_pro_type'] == 3):
                        foreach($attr['values'] as $attrv2):
                          $back_color = '#FFFFFF';
                          $color_arr = explode('#',$attrv2['label']);
                          if(is_array($color_arr) && isset($color_arr)){
                            $back_color = '#'.$color_arr[1];
                          }
                  ?>
                  <span style="background-image:url(<?php echo $attrv2['image'];?>)" title="<?php echo $attr_id.':'.$attr['name'].':'.$attrv2['product_attr_id'] .':'. $attrv2['label'] .':'. $attrv2['attr_value_id'];?>" <?php if($attr['default'] == $attrv2['product_attr_id']):?>class="selected"<?php endif;?> ></span>
                  <?php endforeach;endif;endforeach;?>
                </td>
              </tr>
             <?php endif;?>
            <?php if(isset($attributeList[169]) && !empty($attributeList[169])):
              $order_i++;
              $attr_id = 169;
              $attr    = $attributeList[169];
            ?>
            <tr>
              <th>绣字位置</th>
              <td class="radio-group jeans-location js-jeans-location">
                <!-- 牛仔裤绣字的位置, start -->
                <?php
                  $j=0;
                  if(isset($attr['values']) && $attr['values']):
                    foreach ($attr['values'] as $attrv):
                      $j++;
                ?>
                <label title="<?php echo $attr_id.':'.$attr['name'].':'.$attrv['product_attr_id'] .':'. $attrv['label'].':'. $attrv['attr_value_id'];?>" class="mr1x<?php if($attr['default']== $attrv['product_attr_id']) echo ' selected';?>" data-location="<?php if($attr_id==169 && $attrv['attr_value_id']==934){echo 'upper-left';}?><?php if($attr_id==169 && $attrv['attr_value_id']==933){echo 'center';}?><?php if($attr_id==169 && $attrv['attr_value_id']==932){echo 'lower-right';}?>">
                    <i class="radiobox<?php  if($attr['default'] == $attrv['product_attr_id']){echo ' checked';}?>"></i>
                    <em><?php echo $attrv['label'];?></em>
                </label>
                <?php
                    endforeach;
                  endif;
                ?>
                <!-- 牛仔裤绣字的位置, end -->
              </td>
            </tr>
            <?php endif; ?>
            <tr>
              <th><?php echo L('_Preview_');?></th>
              <?php if($productInfo['model_id'] ==26){//如果是牛仔裤?>
              <td class="rel preview-effect js-preview-effect jeans-preview js-jeans-preview" style="background:url(/statics/front/images/custom/jeans-monogram.jpg);">
                <span class="center" style="font-family:Arial, Helvetica, sans-serif;"></span>
              </td>
              <?php }else{?>
              <td class="preview-effect js-preview-effect" style="background: url(<?php echo $productInfo['ml_img'];?>) 50% 0% / cover #ccc">
                <span></span>
                <?php if($help_attr_count>1):?>
                <span></span>
                <?php endif;?>
              </td>
              <?php }?>
            </tr>
            </table>
            <?php if($productInfo['model_id'] != 14&&$productInfo['model_id'] != 26):?>
              <?php if($productInfo['model_id'] == 22):?>
              <img src="/statics/front/images/custom/monogram-wind-coat.png" class="pull-right" />
              <?php else:?>
              <img src="/statics/front/images/custom/monogram.png" class="pull-right" />
              <?php endif; ?>
            <?php endif; ?>
          </div>
          <?php if(isset($attributeList[83]) && !empty($attributeList[83])):
            $order_i++;
            $attr_id = 83;
            $attr    = $attributeList[83];
          ?>
          <!-- 衬衣绣字的位置, start -->
          <div class="attribute">
            <div class="attr-head">
              <i class="js-serial-num"><?php $order_i++;echo 1;?></i>
              <strong><?php echo $attr['name'];?></strong>
              <span data-attr-id="<?php echo $attr_id;?>" class="js-btn-help"><?php echo L('help');?></span>
            </div>
            <ul>
              <?php
                $j=0;
                if(isset($attr['values']) && $attr['values']):
                  foreach ($attr['values'] as $attrv):
                  $j++;
              ?>
              <li title="<?php echo $attr_id.':'.$attr['name'].':'.$attrv['product_attr_id'] .':'. $attrv['label'].':'. $attrv['attr_value_id'];?>" class="<?php if($attr['default']== $attrv['product_attr_id']) echo 'selected';?><?php if($attr_id==83 && $attrv['attr_value_id']==260){echo ' js-shirt-location-cuff';}?><?php if($attr_id==83 && $attrv['attr_value_id']==259){echo 'js-shirt-location-pocket';}?>">
                <a href="javascript:">
                  <img src="<?php echo $attrv['image'];?>" />
                  <img src="<?php echo $attrv['image2'];?>" class="active" />
                </a>
                <p class="attr-val"><?php echo $attrv['label'];?></p>
              </li>
              <?php
                  endforeach;
                endif;
              ?>
            </ul>
          </div>
          <!-- 衬衣绣字的位置, end -->
          <?php endif; ?>
          <?php else:?>
          <!-- 皮鞋刻字, start -->
          <div class="attribute">
            <div class="attr-head">
              <i class="js-serial-num"><?php echo 1;?></i>
              <strong><?php echo L('LETTERING');?></strong>
              <span data-attr-id="155" class="js-btn-help"><?php echo L('help');?></span>
            </div>
            <table class="monogram">
              <tr>
                <th><?php echo $attributeList[157]['name'];?></th>
                <td class="radio-group js-radio-group">
                  <?php
                    $background_img = '';
                    foreach ($attributeList as $attr_id => $attr):
                      if($attr['attr_pro_fid'] == '9999' && $attr['attr_pro_type'] == 2):
                        foreach($attr['values'] as $index => $attrv2):
                  ?>
                  <label title="<?php echo $attr_id.':'.$attr['name'].':'.$attrv2['product_attr_id'] .':'. $attrv2['label'] .':'. $attrv2['attr_value_id'];?>" data-img="<?php echo $attrv2['image']; ?>"<?php if($index == 0): ?> class="mr2x"<?php endif;?>>
                    <i class="radiobox<?php if($attr['default'] == $attrv2['product_attr_id']):$background_img = $attrv2['image'];?> checked<?php endif;?>"></i>
                    <em><?php echo $attrv2['label']; ?></em>
                  </label>
                  <?php endforeach;endif;endforeach;?>
                </td>
              </tr>
              <tr>
                <th><?php echo L('text');?></th>
                <td class="pb2x">
                  <?php
                    $textcss_i = 1;
                    foreach ($attributeList as $attr_id => $attr):
                      if($attr['attr_pro_fid'] == '9999' && $attr['attr_pro_type'] == 1):
                  ?>
                  <label>
                    <em><?php echo L('line'.$textcss_i);?>:</em>
                    <?php $max_size = 10; ?>
                    <input type="text" placeholder="<?php if(isset($attr['default']) && $attr['default']){echo $attr['default'];}else{ echo '('.L("_MAX_".$max_size).')';}?>" title="<?php echo $attr_id.':'.$attr['name'].'::'.(isset($attr['default_value']) && $attr['default_value'] ? $attr['default_value'] : '');?>" maxlength="<?php echo $max_size;?>" data-default="(<?php echo L('_MAX_'.$max_size);?>)" class="js-preview-text js-engraving">
                  </label>
                  <p style="font:12px Arial, Helvetica, sans-serif;"><?php echo L('engraving_tip'); ?></p>
                  <?php
                      $textcss_i++;
                      endif;
                    endforeach;
                  ?>
                </td>
              </tr>
              <tr>
                <th><?php echo L('_Preview_'); ?></th>
                <td class="preview-effect shoes-preview js-preview-effect" style="background: url(<?php echo $background_img;?>) 50% 0% / cover #ccc"></td>
              </tr>
            </table>
          </div>
          <!-- 皮鞋刻字, end -->
          <?php endif; ?>
        </div>
      <?php endif; ?>
      <?php
        if($productInfo['model_id'] == 25):
      ?>
      <!-- 皮鞋尺码, start -->
      <div class="panel">
      	<?php if($is_shoes==1 && $productInfo['model_id']==25){ ?>
        <div class="attribute">
          <div class="attr-head">
            <i class="js-serial-num"><?php echo 1;?></i>
            <strong><?php echo L('_measurement_');?></strong>
          </div>

          <table class="pull-left mb2x foot-measurements">
            <?php
              foreach ($attributeList as $attr_id => $attr):
                if($attr['attr_pro_fid'] == '9998' && $attr['attr_pro_type'] == 1):
                  foreach($attr['values'] as $attrv2):
            ?>
            <tr>
              <th class="pl1x pb2x"><?php echo $attr['name']; ?></th>
              <td class="pb2x">
                <input type="text" title="<?php echo $attr_id.':'.$attr['name'].'::'.(isset($attr['default_value']) && $attr['default_value'] ? $attr['default_value'] : ''); ?>" class="js-foot-measure" value="<?php echo $attr['default'];?>"> CM
              </td>
            </tr>
            <?php endforeach;endif;endforeach;?>
          </table>

          <table class="foot-measurements">
            <tr>
              <td colspan="2" class="pl1x pb1x"><?php echo L('how_to_measure');?></td>
            </tr>
            <tr>
              <td colspan="2" class="pl1x">
                <img src="/statics/front/images/custom/foot-length.png" alt="foot length">
              </td>
            </tr>
          </table>
        </div>
		<?php } ?>
        <div class="attribute">
          <div class="attr-head">
            <i class="js-serial-num"><?php  if($is_shoes==1){ echo 2;}else{ echo 1;}?></i>
            <strong><?php echo L('standard_shoes_size');?></strong>
          </div>
          <p class="ml1x mb1x"><?php echo L('standard_size_tips');?></p>
          <table class="mb1x foot-measurements">


            <?php
              $attr_id = 162;//常用尺码 尺码值
              $attr = $attributeList[$attr_id];
              $us_default_value = $attr['default'] ? $attr['default'] : C('shoe_size_cn_default');
              $eu_default_value = C('shoe_size_cn_default');
            ?>
            <tr>
              <th class="pl1x pb1x long">你习惯穿着的尺码</th>
              <td width="30%" class="pb1x js-shoe-select">
                <div class="select-widget<?php if($shoe_size_unit_id == 894):?> hide<?php endif;?>" title="<?php echo $attr_id.':'.$attr['name'].'::'.(isset($attr['default_value']) && $attr['default_value'] ? $attr['default_value'] : '');?>">
                  <i></i>
                  <span><?php echo L('please_select'); ?></span>
                  <select data-error="<?php echo L('please_select_size'); ?>">
                    <option value="<?php echo L('please_select'); ?>" selected><?php echo L('please_select'); ?></option>
                    <?php foreach($shoe_size as $sizeVal):?>
                    <option value="<?php echo $sizeVal; ?>" <?php echo $attr['default']==$sizeVal?"selected":""?>><?php echo $sizeVal; ?></option>
                    <?php endforeach;?>
                  </select>
                </div>
              </td>
              <td width="45%" class="pb1x">
                <a href="javascript:;" data-toggle="modal" data-target="#shoes-size-guide"><?php echo L('SIZE_GUIDE'); ?></a>
              </td>
            </tr>
          </table>
        </div>
      </div>
      <!-- 皮鞋尺码, end -->
      <?php endif;?>
    </div>
    <div class="clearfix controls js-controls">
        <?php if($productInfo['model_id'] == 25){?>
            <?php if(!$msizedata):?>
                <span class="btn btn-middle pull-left<?php if(!$quickbuy):?> hide<?php endif;?> js-prev">&lt; <?php echo L('_PAGE_PREV_');?></span>
                <span class="btn btn-middle pull-right <?php if(isset($attributeList[9999]) && !$quickbuy) echo ' hide';?> js-next"><?php echo L('_PAGE_NEXT_');?> &gt;</span>
                <span class="fa fa-angle-down green cur-pointer js-scroll-down"></span>
            <?php endif;?>
            <span class="btn btn-middle pull-right  <?php if(!isset($attributeList[9999]) || $quickbuy) echo ' hide';?> js-submit-custom" data-cid="<?php echo $cid ? $cid : 0;?>"><?php echo L('_Add_to_Cart_');?> &gt;</span>
        <?php }else{?>
            <?php if(!$msizedata):?>
                <span class="btn btn-middle pull-left<?php if(!$quickbuy):?> hide<?php endif;?> js-prev">&lt; <?php echo L('_PAGE_PREV_');?></span>
                <span class="btn btn-middle pull-right <?php if(count($show_attr_array)==0){ if(!isset($attributeList[9999]) || $quickbuy) echo ' hide'; }?> js-next"><?php echo L('_PAGE_NEXT_');?> &gt;</span>
                <span class="fa fa-angle-down green cur-pointer js-scroll-down"></span>
            <?php endif;?>
            <span class="btn btn-middle pull-right  <?php if(isset($attributeList[9999]) && !$quickbuy) echo ' hide';?> js-submit-custom" data-cid="<?php echo $cid ? $cid : 0;?>"><?php echo L('_Add_to_Cart_');?> &gt;</span>
        <?php }?>
    </div>
  </div>
  <?php if($productInfo['model_id'] == 25):?>
  <!-- 皮鞋尺码表, start -->
  <div class="modal fade shoes-size-guide" id="shoes-size-guide">
    <div class="modal-dialog">
      <div class="modal-content">
        <div class="modal-header">
          <span class="close" data-dismiss="modal">&times;</span>
        </div>
        <div class="modal-body">
          <table class="align-center">
            <caption class="mb1x title"><?php echo L('SIZE_GUIDE'); ?></caption>
            <tr>
              <th width="50%">脚长（CM）</th>
              <th width="50%">鞋码</th>
            </tr>
            <tr>
              <td>24</td>
              <td>38</td>
            </tr>
            <tr>
              <td>24.5</td>
              <td>39</td>
            </tr>
            <tr>
              <td>25</td>
              <td>40</td>
            </tr>
            <tr>
              <td>25.5</td>
              <td>41</td>
            </tr>
            <tr>
              <td>26</td>
              <td>42</td>
            </tr>
            <tr>
              <td>26.5</td>
              <td>43</td>
            </tr>
            <tr>
              <td>27</td>
              <td>44</td>
            </tr>
            <tr>
              <td>27.5</td>
              <td>45</td>
            </tr>
            <tr>
              <td>28</td>
              <td>46</td>
            </tr>
          </table>
        </div>
      </div>
    </div>
  </div>
  <!-- 皮鞋尺码表, end -->
  <?php endif; ?>
  <?php endif; ?>
  <img src="<?php echo $productInfo['bg_img'];?>" class="custom-bg js-custom-bg">
  <span class="btn mobile-add-cart js-mobile-add-cart" data-cid="<?php echo $cid ? $cid : 0;?>"><?php echo L('ADD_TO_CART');?> &gt;</span>
</div>
<input type="hidden" id="sel_custom_val" value="<?php echo $sel_custom_val;?>">
<input type="hidden" id="msizedata" value="<?php echo $msizedata;?>">
<input type='hidden' id="count_show_attr" value="<?php echo count($show_attr_array);?>">
<!-- build:js /statics/front/pkg/js/custom.js -->
<script src="/statics/front/showtip/showTip.js"></script>
<script src="/statics/front/js/plugins/jquery.popupBox.js"></script>
<script src="/statics/front/js/scripts/custom/common.js"></script>
<script src="/statics/front/js/scripts/custom/validate.js"></script>
<script src="/statics/front/js/scripts/custom/fixed-position.js?v=20160122"></script>
<script src="/statics/front/js/scripts/custom/set-height.js?v=20160122"></script>
<script src="/statics/front/js/scripts/custom/help.js"></script>
<script src="/statics/front/js/scripts/custom/img-change.js"></script>
<script src="/statics/front/js/scripts/custom/more-option-common.js"></script>
<script src="/statics/front/js/scripts/custom/more-option.js"></script>
<script src="/statics/front/js/scripts/custom/monogram.js"></script>
<script src="/statics/front/js/scripts/custom/shoes.js"></script>
<script src="/statics/front/js/scripts/custom/foot-measure.js"></script>
<script src="/statics/front/js/scripts/custom/jeans.js"></script>
<script src="/statics/front/js/scripts/custom/switch.js"></script>
<script src="/statics/front/js/scripts/custom/submit-custom.js"></script>
<script src="/statics/front/js/scripts/custom/mobile.js"></script>
<script>
function get_mianliao(attr_value_id){
	$("#attr_value_ul li").css('display',"");
	/* if(attr_value_id==856){//alert($("#hidden_miaoliao"+1064).css('display'));
		$("#hidden_miaoliao"+855).css('display',"none");
		$("#hidden_miaoliao"+202).css('display',"none");
		$("#hidden_miaoliao"+1064).css('display',"none");
		$("#hidden_miaoliao"+1065).css('display',"none");
	}else  */if(attr_value_id==921){
		$("#hidden_miaoliao"+100).css('display',"none");
	}else
	if(attr_value_id==91||attr_value_id==92){
		$("#hidden_miaoliao"+920).css('display',"none");
	}/* else
	if(attr_value_id==194||attr_value_id==195){
		$("#hidden_miaoliao"+854).css('display',"none");
		$("#hidden_miaoliao"+1064).css('display',"none");
		$("#hidden_miaoliao"+1065).css('display',"none");
	} */

}
window.get_mianliao(<?php echo $libu_attr;?>);
<?php if($is_shoes==0 && $productInfo['model_id']==25){ ?>
	$(".js-first-panel").hide();
	$(".inner .panel").eq(1).show();
	$(".js-flowchart .center-block li").removeClass("current");
	$(".js-flowchart .center-block li").eq(1).addClass("current");
	$(".js-next").addClass("hide");
	$(".js-submit-custom").removeClass("hide");
	$(".js-prev").removeClass("hide");
	$(".js-prev").click(function(){
		history.go(-1);
	});
<?php } ?>
window.onload=function(){
	if (!$(".js-next").hasClass('hide') && !$(".js-submit-custom").hasClass('hide')){
		$(".js-submit-custom").addClass('hide');;
	}

}
</script>
<!-- endbuild -->
<?php include THEMES_PATH.'public/after_body.phtml';?>